﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000867 RID: 2151
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetTrialActivityDataScRsp : IMessage<GetTrialActivityDataScRsp>, IMessage, IEquatable<GetTrialActivityDataScRsp>, IDeepCloneable<GetTrialActivityDataScRsp>, IBufferMessage
	{
		// Token: 0x17001B24 RID: 6948
		// (get) Token: 0x06006033 RID: 24627 RVA: 0x0010051F File Offset: 0x000FE71F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetTrialActivityDataScRsp> Parser
		{
			get
			{
				return GetTrialActivityDataScRsp._parser;
			}
		}

		// Token: 0x17001B25 RID: 6949
		// (get) Token: 0x06006034 RID: 24628 RVA: 0x00100526 File Offset: 0x000FE726
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetTrialActivityDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001B26 RID: 6950
		// (get) Token: 0x06006035 RID: 24629 RVA: 0x00100538 File Offset: 0x000FE738
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetTrialActivityDataScRsp.Descriptor;
			}
		}

		// Token: 0x06006036 RID: 24630 RVA: 0x0010053F File Offset: 0x000FE73F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrialActivityDataScRsp()
		{
		}

		// Token: 0x06006037 RID: 24631 RVA: 0x00100554 File Offset: 0x000FE754
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrialActivityDataScRsp(GetTrialActivityDataScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.trialActivityInfoList_ = other.trialActivityInfoList_.Clone();
			this.activityStageId_ = other.activityStageId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06006038 RID: 24632 RVA: 0x001005A1 File Offset: 0x000FE7A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetTrialActivityDataScRsp Clone()
		{
			return new GetTrialActivityDataScRsp(this);
		}

		// Token: 0x17001B27 RID: 6951
		// (get) Token: 0x06006039 RID: 24633 RVA: 0x001005A9 File Offset: 0x000FE7A9
		// (set) Token: 0x0600603A RID: 24634 RVA: 0x001005B1 File Offset: 0x000FE7B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001B28 RID: 6952
		// (get) Token: 0x0600603B RID: 24635 RVA: 0x001005BA File Offset: 0x000FE7BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<TrialActivityInfo> TrialActivityInfoList
		{
			get
			{
				return this.trialActivityInfoList_;
			}
		}

		// Token: 0x17001B29 RID: 6953
		// (get) Token: 0x0600603C RID: 24636 RVA: 0x001005C2 File Offset: 0x000FE7C2
		// (set) Token: 0x0600603D RID: 24637 RVA: 0x001005CA File Offset: 0x000FE7CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ActivityStageId
		{
			get
			{
				return this.activityStageId_;
			}
			set
			{
				this.activityStageId_ = value;
			}
		}

		// Token: 0x0600603E RID: 24638 RVA: 0x001005D3 File Offset: 0x000FE7D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetTrialActivityDataScRsp);
		}

		// Token: 0x0600603F RID: 24639 RVA: 0x001005E4 File Offset: 0x000FE7E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetTrialActivityDataScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.trialActivityInfoList_.Equals(other.trialActivityInfoList_) && this.ActivityStageId == other.ActivityStageId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006040 RID: 24640 RVA: 0x00100644 File Offset: 0x000FE844
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.trialActivityInfoList_.GetHashCode();
			if (this.ActivityStageId != 0U)
			{
				num ^= this.ActivityStageId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006041 RID: 24641 RVA: 0x001006AA File Offset: 0x000FE8AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006042 RID: 24642 RVA: 0x001006B2 File Offset: 0x000FE8B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06006043 RID: 24643 RVA: 0x001006BC File Offset: 0x000FE8BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.trialActivityInfoList_.WriteTo(ref output, GetTrialActivityDataScRsp._repeated_trialActivityInfoList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this.ActivityStageId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.ActivityStageId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06006044 RID: 24644 RVA: 0x00100728 File Offset: 0x000FE928
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.trialActivityInfoList_.CalculateSize(GetTrialActivityDataScRsp._repeated_trialActivityInfoList_codec);
			if (this.ActivityStageId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ActivityStageId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06006045 RID: 24645 RVA: 0x00100794 File Offset: 0x000FE994
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetTrialActivityDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.trialActivityInfoList_.Add(other.trialActivityInfoList_);
			if (other.ActivityStageId != 0U)
			{
				this.ActivityStageId = other.ActivityStageId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06006046 RID: 24646 RVA: 0x001007F5 File Offset: 0x000FE9F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06006047 RID: 24647 RVA: 0x00100800 File Offset: 0x000FEA00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 34U)
				{
					if (num != 72U)
					{
						if (num != 112U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.ActivityStageId = input.ReadUInt32();
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.trialActivityInfoList_.AddEntriesFrom(ref input, GetTrialActivityDataScRsp._repeated_trialActivityInfoList_codec);
				}
			}
		}

		// Token: 0x040024F8 RID: 9464
		private static readonly MessageParser<GetTrialActivityDataScRsp> _parser = new MessageParser<GetTrialActivityDataScRsp>(() => new GetTrialActivityDataScRsp());

		// Token: 0x040024F9 RID: 9465
		private UnknownFieldSet _unknownFields;

		// Token: 0x040024FA RID: 9466
		public const int RetcodeFieldNumber = 9;

		// Token: 0x040024FB RID: 9467
		private uint retcode_;

		// Token: 0x040024FC RID: 9468
		public const int TrialActivityInfoListFieldNumber = 4;

		// Token: 0x040024FD RID: 9469
		private static readonly FieldCodec<TrialActivityInfo> _repeated_trialActivityInfoList_codec = FieldCodec.ForMessage<TrialActivityInfo>(34U, TrialActivityInfo.Parser);

		// Token: 0x040024FE RID: 9470
		private readonly RepeatedField<TrialActivityInfo> trialActivityInfoList_ = new RepeatedField<TrialActivityInfo>();

		// Token: 0x040024FF RID: 9471
		public const int ActivityStageIdFieldNumber = 14;

		// Token: 0x04002500 RID: 9472
		private uint activityStageId_;
	}
}
